// 引入使用的组件
import Home from '@/pages/Home';
import Search from '@/pages/Search';
import Login from '@/pages/Login';
import Register from '@/pages/Register';
//向外暴露一个数组 隔壁文件使用
export default [
    /*注册Home路由*/
    {
        path: '/',
        component: Home
    },
    /*注册Search路由*/
    {
        path: '/search',
        component: Search
    },
    /*注册Login路由*/
    {
        path: '/login',
        component: Login,
        meta: {
            isFooterHide: true
        }
    },
    /*注册Register路由*/
    {
        path: '/register',
        component: Register,
        meta: {
            isFooterHide: true
        }
    },
    //重定向
    {
        path: '/',
        redirect: '/'
    }
]
